@extends("public.base")

@section('content')
    <h1>test</h1>
    @if($switch == 1)
    1
    @else
    2
    @endif

    @foreach ($arr as $val)
        <p>This is val{{$val}}</p>
    @endforeach
@endsection

<a  href="{!! route('index') !!}">回到首页</a>
